app.bust = '1';
// app.bust = Date.now();
app.dynamicLoadingCss(app.resPath+'css/diagnosis/diagnosis.css?bust='+app.bust);

app.host = 'http://uc.gzxueersi.com/index.php';
if(app.isLocal){
  app.host = '';
}
app.getParam=function(a){var b=location.search;a=a+"=";return b.indexOf(a)==-1?'':b.substring(b.indexOf(a)+a.length,b.indexOf("&",b.indexOf(a))==-1?b.length:b.indexOf("&",b.indexOf(a)))};

app.getTimeRange = function (b, e) {
  var t = function (n) {
    n = n + '';
    if (n.length<2) {
      return '0' + n;
    } else {
      return n;
    }
  }
  b = new Date(b);
  e = new Date(e);
  return t(b.getMonth()+1) + '月' + t(b.getDate()) + '日 ' + t(b.getHours()) + ':' + t(b.getMinutes()) + '-' + t(e.getHours()) + ':' + t(e.getMinutes());
}
layui.config({
  dir: app.libPath + 'layui/'
}).use(['jquery','layer','form','laydate'], function(){
  app.dynamicLoadingJs(app.resPath+'js/diagnosis/diagnosis.js?bust='+app.bust);
});
